Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use getProTerritory() to avoid NPE. #11738

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

asvitkine
Copy link
Contributor

Change Summary & Additional Notes

Speculative fix for #11655, which is a 2.6 issue in the new AI logic to move consumables to factories.

I don't have a repro, but this wrapper specifically handles the case when the map doesn't have an entry and we use it elsewhere, so seems like the right thing to do.

Release Note

@asvitkine asvitkine linked an issue Jul 6, 2023 that may be closed by this pull request
@asvitkine asvitkine merged commit 307425f into triplea-game:master Jul 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProNonCombatMoveAi#visit:2415 - java.lang.NullPointerException
1 participant